package cre.spring.boot.v1.demo.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @Author guchenbo
 * @Date 2019/2/25.
 */
@Component
public class ContextRefreshedEventListener implements ApplicationListener<ContextRefreshedEvent> {
    protected static final Logger log = LoggerFactory.getLogger(ContextRefreshedEventListener.class);

    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        log.info("in");
    }
}
